package com.rbac.admin.entity.system;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.rbac.admin.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 角色实体类
 *
 * @author rbac-admin
 * @since 2024-07-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_role")
@Schema(description = "角色实体")
public class SystemRole extends BaseEntity {

    @Schema(description = "角色名称")
    @TableField("role_name")
    private String roleName;

    @Schema(description = "角色编码")
    @TableField("role_code")
    private String roleCode;

    @Schema(description = "描述")
    private String description;

    @Schema(description = "数据权限：1-全部，2-本部门及以下，3-本部门，4-仅本人，5-自定义")
    private Integer dataScope;

    @Schema(description = "状态：0-停用，1-正常")
    private Integer status;
}